<template>
    <div>sub vite ts</div>
    <div>Dialog view</div>
    <el-button plain @click="dialogVisible = true">
    Open the modal Dialog
  </el-button>

  <el-dialog v-model="dialogVisible" :modal="true">
    <ShareView :code="'1166600'" :token="token_info.token" :projectKey="PROJECT_KEY"></ShareView>
    <template #footer>
      <div class="dialog-footer">
        <el-button @click="dialogVisible = false">Cancel</el-button>
        <el-button type="primary" @click="dialogVisible = false">
          Confirm
        </el-button>
      </div>
    </template>
  </el-dialog>
</template>

<script setup lang="ts">
import { ShareView } from '@glz/components'
import { ref } from 'vue'
import { PROJECT_KEY } from "../config";
import { useTokenStore } from "@glz/utils"

const dialogVisible = ref(false)

const token_info = useTokenStore(PROJECT_KEY)

</script>